@echo off

echo Try to kill the current process of MediaServer
tasklist | find /i "MediaServer.exe"
if %errorlevel% == 0 (
	taskkill /f /im "MediaServer.exe"
)

echo Wait to start MediaServer
timeout /t 3
cd %ZLMediaKit安装目录%
start "MediaServer" MediaServer.exe
